﻿<%@ Page Title="subscriber when message received" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="crm_subscriber_classification.aspx.cs" Inherits="Sami_SMS_CRM_UI.crm_subscriber_classification" %>
<%@ Register Src="UserControl/ucPaging.ascx" TagName="ucPaging" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CssContent" runat="server">
    <style type="text/css">
        .box-content p{margin:2px 0 0 5px;}
        .box-content p input, .box-content p select{margin-bottom: 5px; padding: 4px 6px;}
        .box-content p span{display: inline-block; width: 80px; padding-left: 10px;}
        .detail{color: #555555; text-decoration:none;}
        .detail:hover{text-decoration:underline;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%=txtFrom.ClientID%>, #<%=txtTo.ClientID%>").datetimepicker()
        });
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="box">
        <div class="box-title">
            Searching
        </div>
        <div class="box-content ui-widget-content">
            <p>
                <span>Subscriber</span>
                <asp:TextBox ID="txtSubscriber" runat="server" />
            </p>
            <p>
                <span>From</span>
                <asp:TextBox ID="txtFrom" runat="server" />
                <span>To</span>
                <asp:TextBox ID="txtTo" runat="server" />
            </p>
            <p style="text-align:center">
                <asp:Button ID="btnSearching" runat="server" Text="Search" CssClass="ui-button" 
                    onclick="btnSearching_Click" />
            </p>
        </div>
    </div>
    <div class="box">
        <div class="box-title clearfix">
            <div class="fl">
                List of Subscriber
            </div>
            <div class="fr">
                <asp:ImageButton ID="btnDeleteAll" runat="server" ImageUrl="~/img/icons/ws/ic_cancel.png"
                    ToolTip="Delete all subscriber expired" OnClick="btnDeleteAll_Click" 
                    OnClientClick="return confirm('Are you sure delete?');"/>
            </div>
        </div>
        <div class="box-content">
            <div class="clearfix" style="height: 32px">
                <div class="fl">
                    Show
                    <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                        <asp:ListItem Value="5">5</asp:ListItem>
                        <asp:ListItem Value="10">10</asp:ListItem>
                        <asp:ListItem Value="20">20</asp:ListItem>
                        <asp:ListItem Value="50" Selected="True">50</asp:ListItem>
                        <asp:ListItem Value="100">100</asp:ListItem>
                        <asp:ListItem Value="150">150</asp:ListItem>
                        <asp:ListItem Value="200">200</asp:ListItem>
                    </asp:DropDownList> / 
                    <asp:Literal ID="ltrTotalRow" runat="server" Text="0" /> 
                    entries
                </div>
                <div class="fr">
                    <uc1:ucpaging id="pagingtop" runat="server" />
                </div>
            </div>
            <div class="clearfix">
                <table class="table" style="width: 100%;">
                    <thead>
                        <tr>
                            <th style="width: 35px">
                                No
                            </th>
                            <th>Subscriber</th>
                            <th>operator_id </th>
                            <th>gateway_id</th>
                            <th>service_id</th>
                            <th>vasp_num</th>
                            <th>received_time</th>
                            <th>measurement</th>
                            <th>total_measurement</th>
                            <th>status </th>
                            <th>classification_type</th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="rptTable" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td style="text-align: center">
                                        <%#(Container.ItemIndex +1) + (pagingtop.CurrentPage - 1) * pagingtop.PageSize %>
                                    </td>
                                    <td><%#Eval("subscriber")%></td>
                                    <td><%#Eval("operator_id")%> </td>
                                    <td><%#Eval("gateway_id")%></td>
                                    <td><%#Eval("service_id")%></td>
                                    <td><%#Eval("vasp_num")%></td>
                                    <td><%#Eval("received_time")%></td>
                                    <td><%#Eval("measurement")%></td>
                                    <td><%#Eval("total_measurement")%></td>
                                    <td><%#Eval("status")%></td>
                                    <td><%#Eval("classification_type")%></td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
                <div class="fr">
                    <uc1:ucpaging id="pagingbottom" runat="server" />
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" id="formId" value="crm_subscriber_classification" />
</asp:Content>
